<%= form_for([@questionnaire, @question]) do |f| %>
  <% if @question.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@question.errors.count, "error") %> prohibited this question from being saved:</h2>

      <ul>
      <% @question.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :question %><br />
    <%= f.text_field :question %>
  </div>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_field :description %>
  </div>
  <div class="field">
    <%= f.label :answer_1 %><br />
    <%= f.text_field :answer_1 %>
  </div>
  <div class="field">
    <%= f.label :answer_2 %><br />
    <%= f.text_field :answer_2 %>
  </div>
  <div class="field">
    <%= f.label :answer_3 %><br />
    <%= f.text_field :answer_3 %>
  </div>
  <div class="field">
    <%= f.label :answer_4 %><br />
    <%= f.text_field :answer_4 %>
  </div>
  <div class="field">
    <%= f.label :answer_5 %><br />
    <%= f.text_field :answer_5 %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
